﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace HttpClientTest
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            HttpClient client = new HttpClient();
            var respone = client.GetAsync("http://www.baidu.com");
            var result = respone.Result;
            var str = result.Content.ReadAsStringAsync().Result;
        }
    }
}
